package com.xayy.health.mgt.model;

import cn.kawins.mybatis.base.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 事后诊断多参数数据
 *
 * @author zhangxa
 *  tb_diagnose_multiple_parameters_data
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table(name = "HEALTH.tb_diagnose_multiple_parameters_data")
public class DiagnoseMultipleParametersData extends BaseModel<Long> {
    /**
     * 时间
     */
    @ApiModelProperty("时间")
    @Column(name = "time")
    private String time;
    /**
     * 值
     */
    @ApiModelProperty("值")
    @Column(name = "value")
    private Double value;
    /**
     * 任务id
     */
    @ApiModelProperty("任务id")
    @Column(name = "task_id")
    private Long taskId;
    /**
     * 卫星代号
     */
    @ApiModelProperty("卫星代号")
    @Column(name = "sate_code")
    private String sateCode;
    /**
     * 参数代号
     */
    @ApiModelProperty("参数代号")
    @Column(name = "param_code")
    private String paramCode;
    /**
     * 子任务id
     */
    @ApiModelProperty("子任务id")
    @Column(name = "task_child_id")
    private Long taskChildId;
    /**
     * 类型
     */
    @ApiModelProperty("类型")
    @Column(name = "type")
    private String type;
    /**
     * 斜率专用
     */
    @ApiModelProperty("斜率专用")
    @Column(name = "gradient")
    private Double gradient;
    /**
     * 双参标识
     */
    @ApiModelProperty("双参标识")
    @Column(name = "two_logo")
    private String twoLogo;
    /**
     * 名称
     */
    @ApiModelProperty("名称")
    @Column(name = "name")
    private String name;
    /**
     * 斜率用-异常参数时间点
     */
    @ApiModelProperty("斜率用-异常参数时间点")
    @Column(name = "error_time")
    private String errorTime;
    /**
     * 斜率用-异常参数时间点下标
     */
    @ApiModelProperty("斜率用-异常参数时间点下标")
    @Column(name = "time_index")
    private String timeIndex;

    /**
     * 提示
     */
    @ApiModelProperty("提示")
    @Column(name = "msg")
    private String msg;


    @Override
    public Long idValue() {
        return taskChildId;
    }
}
